package com.sun.mybatisplus.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class FormItemUpdateDTO {

    @NotNull(message = "id不能为空")
    @ApiModelProperty("id")
    private Long id;
    @NotBlank(message = "单据名称不能为空")
    @ApiModelProperty("单据名称")
    private String name;
    @ApiModelProperty("事项id")
    private List<Long> itemIdList;
    @NotNull(message = "单据类型不能为空")
    @ApiModelProperty("单据类型")
    private String type;
    @NotNull(message = "流水规则code不能为空")
    @ApiModelProperty("流水规则code")
    private String flowRuleCode;
//    @NotNull(message = "收款方式code不能为空")
    @ApiModelProperty("收款方式")
    private PaymentWayDTO paymentWayDTO;
    @ApiModelProperty("关联配置")
    private RelevanceDataDTO relevanceDataDTO;

}